maintainer="Krassy Boykinov <kboykinov@teamcentrixx.com>"
pkgname=libimobiledevice-glue
pkgver=1.3.1
pkgrel=0
pkgdesc="Library for common code of the libimobiledevice project"
url="https://libimobiledevice.org"
arch="all"
license="LGPL-2.1-or-later"
makedepends="libplist-dev"
subpackages="$pkgname-dev"
source="https://github.com/libimobiledevice/libimobiledevice-glue/releases/download/$pkgver/libimobiledevice-glue-$pkgver.tar.bz2"

build() {
	CFLAGS="$CFLAGS -flto=auto" \
	./configure \
		--host=$CHOST \
		--build=$CBUILD \
		--prefix=/usr \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
8ce1fa78f9edd0c4c44575554a42dc8866e8ffb3983138a93403119b55260106fa5bd9d2cef289f22b23202e61db52bc7f875048d8e30dabdb0790d692044ea5  libimobiledevice-glue-1.3.1.tar.bz2
"
